package pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import utils.WebDriverWrapper;

import java.util.concurrent.TimeUnit;

/**
 * Created by Vadim on 6/10/14.
 */
public abstract class BasePage {

    protected static WebDriverWrapper driver;
    protected String url;

    public BasePage(WebDriverWrapper driver, String url) {
        this.driver = driver;
        this.url = url;
    }

    abstract public void open();

    public boolean isOpened() {
        return driver.getCurrentUrl().equals(url);
    }
}
